package com.dogdays.account.dao.impl;

import com.dogdays.account.dao.UserDao;
import com.dogdays.account.generated.tables.pojos.User;
import com.dogdays.account.generated.tables.records.UserRecord;
import com.dogdays.common.dao.impl.VertxDaoImpl;
import io.vertx.core.Vertx;
import org.jooq.Configuration;

/**
 * Created by wuban on 2017/3/20.
 */
public class UserDaoImpl extends VertxDaoImpl<UserRecord,User,Long> implements UserDao {

    public UserDaoImpl(Configuration configuration, Vertx vertx){
        super(com.dogdays.account.generated.tables.User.USER, User.class, configuration, vertx);
    }

    @Override
    protected Long getId(User object) {
        return object.getId();
    }
}
